//
//  MenuSignWebService.m
//  YYZB
//
//  Created by Mac mini on 2017/9/30.
//
//

#import "MenuSignWebService.h"

@implementation MenuSignWebService

- (void)getMenuSignByCommunityId:(NSString *)communityId
               completionHanlder:(void (^)(NSDictionary *items, NSError *error))completionHanlder{
    
    
    NSString *URL = @"HomePage/GetHomeMenuSignByCommId";
    NSDictionary *params = @{
                             @"CommunityId":communityId?communityId:@""
                             };
    NSString *URLString = [self formattedURLString:params method:URL sessionNeeded:NO];
    [self sendHTTPGetRequest:URLString completionHandler:^(id result, NSError *error) {
        if (error != nil) {
            completionHanlder(nil, error);
        } else {
            NSError *err;
            NSDictionary *items = [self unboxedValue:result error:&err];
            completionHanlder(items, err);
        }
    }];

}

@end
